<template>
	<view class="box pt20">
		<view style="margin-top: 20vh;" v-if="!list[0]">
			<u-empty mode="list"></u-empty>
		</view>
		<view v-else>
			<view class="boxItem mb20 mlr20" v-for="(item,index) in list" :key="item.auditId">
				<view>
					<view class="auditImg tg" v-if="item.adviceState == '0'">通过</view>
					<view class="auditImg th" v-if="item.adviceState == '1'">退回</view>
				</view>
				<view class="flex mb20">
					<view class="name w160">审核人：</view>
					<view class="value">{{item.auditUser}}</view>
				</view>
				<view class="flex mb40">
					<view class="name w160">审核意见：</view>
					<view class="value">{{item.auditInfo}}</view>
				</view>
				<view class="mtb20">
					<u-line color="#F5F6F9"></u-line>
				</view>
				<view class="flex flex-itemCenter">
					<image style="width: 28rpx;height: 28rpx;margin-top: 4rpx;" src="../../static/agentTime.png"></image>
					<text class="time">{{item.createTime}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status:'0',
				params:{
					troubleId:''
				},
				list:[]
			}
		},
		onLoad(e) {
			if(e.item){
				this.params.troubleId = JSON.parse(e.item).troubleId
			}
		},
		onShow() {
			this.auditinfoList()
		},
		methods: {
			async auditinfoList(){
				let {resultValue:res} = await this.request(this.$api.auditinfoList,this.params,'POST')
				this.list = res.items
				console.log(res)
				
			}
		}
	}
</script>

<style scoped>
	.box {
		min-height: 100vh;
		background-color: #F1F2F5;
	}
	.boxItem {
		padding: 40rpx;
		background-color: #fff;
		box-shadow: 0 2px 4px 0 rgba(237, 237, 237, 0.50);
		border-radius: 16rpx;
		position: relative;
	}
	.auditImg {
		text-align: center;
		padding: 5rpx 15rpx;
		font-size: 24rpx;
		position: absolute;
		top: 20rpx;
		right: 20rpx;
		padding: 5rpx 15rpx;
		border-radius: 10rpx;
	}
	.tg{
		border: 1px solid #00CA69;
		color: #00CA69;
	}
	.th{
		border: 1px solid #EF473E;
		color: #EF473E;
	}
	.name {
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #89939E;
		padding-right: 20rpx;
	}
	
	.value {
		flex: 1;
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
	}
	.cob{
		flex: 1;
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #3473F9;
	}
	.time {
		margin-left: 10rpx;
		font-size: 24rpx;
		color: #939EA8;
	}
</style>
